<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="blog/amaze/header::head-fragment"></head>
<link rel="stylesheet" th:href="@{/blog/amaze/bootstrap.dist/css/bootstrap.min.css}">
<link rel="stylesheet" th:href="@{/blog/amaze/css/base.css}">
<style>
    a{
        color: red;
    }
</style>
<body id="blog">
<div th:replace="blog/amaze/header::nav-fragment"></div>
<div th:replace="blog/amaze/header::header-fragment"></div>
<br>
<div class="content">
    <div id="container-open-source">
        <section class="container">
            <div class="repo-list row">
                <div class="col-md-10">
                    <th:block th:if="${null != categories}">
                        <th:block th:each="category : ${categories}">
                            <div class="col-md-6 card text-center">
                                <div class="thumbnail">
                                    <div class="card-image"
                                         th:style="'background:url(' + @{(${category.categoryIcon})} + ');background-repeat:no-repeat;'">
                                        <div class="card-image-cell">
                                            <h3 class="card-title">
                                                <a th:href="@{'/category/' + ${category.categoryName}}">
                                                    <th:block th:text="${category.categoryName}"></th:block>
                                                </a>
                                            </h3>
                                        </div>
                                    </div>
                                    <div class="caption">
<!--                                        <div class="card-description">-->
<!--                                            <p class="card-text" th:text="${category.categoryName}"></p>-->
<!--                                        </div>-->
                                        <div class="card-text">
                                    <span data-toggle="tooltip" class="meta-info">
                                        <span class="octicon octicon-clock">
                                            &nbsp;&nbsp;<th:block
                                                th:text="${#dates.format(category.createTime, 'yyyy-MM-dd')}"></th:block>
                                        </span>
                                    </span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </th:block>
                    </th:block>
                </div>
            </div>
        </section>
    </div>
</div>
<footer th:replace="blog/amaze/footer::footer-fragment"></footer>
</body>
<script th:src="@{/blog/plugins/jquery/jquery.min.js}"></script>
<script th:src="@{/blog/plugins/search/search.js}"></script>
</html>